<%--
功能: 商品评论得分显示
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ tag import="java.math.BigDecimal" %>
<%@ attribute name="value" type="java.math.BigDecimal"%>
<%
	//获取十位和个位数
	int tensBei = value.multiply(new BigDecimal("10")).intValue();
	int tensDigit = tensBei/10;
	int singleDigit = tensBei%10;
	
	request.setAttribute("tensDigit",tensDigit);
	request.setAttribute("singleDigit",singleDigit);
	
%>
<span class="point p_${tensDigit}d${singleDigit}" title="${value}"><em>${value}</em></span>

